# Contributor:
# Maintainer:
pkgname=py3-wtf-peewee
_pkgname=wtf-peewee
pkgver=3.0.1
pkgrel=0
pkgdesc="WTForms integration for peewee"
url="https://github.com/coleifer/wtf-peewee"
arch="noarch"
license="MIT"
depends="py3-peewee py3-wtforms py3-markupsafe"
makedepends="py3-setuptools"
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
	https://github.com/coleifer/wtf-peewee/commit/fdab8c36971f7ed9b6e82cbef5a95dbfcc5a70e1.patch
	"

builddir="$srcdir"/$_pkgname-$pkgver

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="44d4dca98b11c7f2c4af7090535eeabb47c819e9ea53c67c7c7cc5b93a93f907b290861b518c242d33475f046c0abf22db893919da35794faf3d0c861771bfce  wtf-peewee-3.0.1.tar.gz
6aaee2e8f6afe36d374ceba9effb7f36eadd24bdb83884fc23b8a2975fc2f5db60649531c5fe126b02667d62e8f89b25ed299f2b9d996071183c931c693f453c  fdab8c36971f7ed9b6e82cbef5a95dbfcc5a70e1.patch"
